package com.eden.door.entity;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public class Door implements Serializable {

	private static final long serialVersionUID = 1L;

	private String name;
	private String type;
	private String code ;
	private String material;
	private String unit;
	private String description;

	private Map<String, DoorAttr> doorAttrs;
	private List<? extends Formula> formulaList ;
	
	@Override
	public String toString() {
		return super.toString() + ":[name:" + name + ",type:" + type +",code:" + code 
				+ ",materal:" + material + ",unit:" + unit + ",description:"
				+ description + ",doorAttrs:" + doorAttrs + ",formulaList:" + formulaList ;
	}

	// -------------------------------------------------
	public Map<String, DoorAttr> getDoorAttrs() {
		return doorAttrs;
	}

	public void setDoorAttrs(Map<String, DoorAttr> doorAttrs) {
		this.doorAttrs = doorAttrs;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getMaterial() {
		return material;
	}

	public void setMaterial(String material) {
		this.material = material;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public List<? extends Formula> getFormulaList() {
		return formulaList;
	}

	public void setFormulaList(List<? extends Formula> formulaList) {
		this.formulaList = formulaList;
	}

	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @param code the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}

}
